<form class="form-horizontal search-form" data-path="{{path}}">
    <div class="form-group">
        <div class="col-sm-6 col-sm-offset-6">
            <div class="input-group">
                <input type="text" class="input-sm form-control" name="keywords" placeholder="请输入商品名称" value="{{keyworks}}"/>
                <span class="input-group-btn">
                    <button class="btn btn-sm btn-default" data-type="ajaxSearch" type="button" title="搜索">
                        <i class="fa fa-search"></i>
                    </button>
                </span>
            </div>
        </div>
    </div>
    <input type="hidden" name="page" id="js_alllink_page" value="{{data.currentPage}}"/>
</form>
{{if data.goods}}
    {{each data.goods as zitem}}
        <div class="row m-t-sm">
            <div class="col-sm-10 m-t-xs"><img class="thumb_img m-r-sm" src="{{zitem.imgsrc}}" style="max-height: 60px;">{{zitem.name}}</div>
            <div class="col-sm-2 m-t">
                <button type="button" class="btn btn-default btn-sm">选择链接</button>
            </div>
        </div>
    {{each}}
{{else}}
<div class="row m-t-sm text-center">暂无数据</div>
{{/if}}

{{if data.count>0}}
<footer class="footer bg-white b-t" data-type="ajaxPage">
  <div class="row text-center-xs">
      <div class="col-md-6 hidden-sm">
          <p class="text-muted m-t">总共{{data.count}}条 当前为第{{data.currentPage}}页</p>
      </div>
      <div class="col-md-6 col-sm-12 text-right text-center-xs">
          <ul class="pagination pagination-sm m-t-sm m-b-none" data-apages-total="{{data.totalPage}}" data-apage-current="{{data.currentPage}}">

            <li {{if data.currentPage==1}} class="disabled"{{/if}}>
              <a href="javascript:;" rel="first" data-page-num="1"><i class="fa fa-angle-double-left" title="第一页"></i></a>
            </li>
            <li {{if data.currentPage==1}} class="disabled"{{/if}}>
              <a href="javascript:;" rel="prev" data-page-num="{{data.currentPage-1}}"><i class="fa fa-angle-left" title="上一页"></i></a>
            </li>
            {{each data.pagelist as item}}
              <li {{if data.currentPage==item}} class="active"{{/if}}>
                <a href="javascript:;" data-page-num="{{item}}" data-page-isnum="true">{{item}}</a>
              </li>
            {{/each}}
            <li {{if data.currentPage==data.totalPage}} class="disabled"{{/if}}><a href="javascript:;" rel="next" data-page-num="{{data.currentPage+1}}"><i class="fa fa-angle-right" title="下一页"></i></a></li>
            <li {{if data.currentPage==data.totalPage}} class="disabled"{{/if}}><a href="javascript:;" rel="last" data-page-num="{{data.totalPage}}"><i class="fa fa-angle-double-right" title="最后页" ></i></a></li>
          </ul>
      </div>
  </div>
</footer>
{{/if}}